package com.zhang.blog.service;

import com.zhang.blog.vo.ArticleVo;
import com.zhang.blog.vo.Result;
import com.zhang.blog.vo.params.ArticleParam;
import com.zhang.blog.vo.params.PageParams;

import java.util.List;


/**
 * @ClassName: ArticleService
 * @Auther: dell
 * @Date: 2021/10/27 20:46
 * @Description:
 */
public interface ArticleService {
    /**
     * 分页查询文章列表
     * @param pageParams
     * @return
     */

    Result listArticle(PageParams pageParams);

    Result hotArticles(int limit);

    Result newArticles(int limit);

    Result listArchives();

    Result findArticleById(Long articleId);

    Result publish(ArticleParam articleParam);

}
